(function(root,factory){
	if (typeof exports === 'object') {
        // Node. 
        module.exports = factory.call(root);
    } else if (typeof define === 'function' && define.amd) {
        // AMD. Register as an anonymous module.
        define(function(){ return factory.call(root) });
    } else {
        // Browser globals (root is window)
        window.borderSyntax = factory.call(root);
    }
}(this,function(){
	var r = function(matchingIndex){
		var i,j,context = this||"";
		i = context.indexOf(r.start,matchingIndex.start);
		if(i!= -1){
			j = context.indexOf(r.end,i+1);
			if(j != -1){
				matchingIndex.start = i;
				matchingIndex.end = j+r.end.length;
				return true;
			}
		}
	}

	r.start = "{";
	r.end = "}";

	return r;
}));